package com.jvxb.common.constants;

/**
 * 监控指标
 *
 * @author jvxb
 * @since 2022-02-15
 */
public interface DbMonitorIndexConstants {
    //Host指标
    String MEM_USED = "MEM.USED";
    String MEM_USED_PERCENT = "MEM.USED.PERCENT";
    String DISK_TOTAL_USED = "DISK.TOTAL.USED";
    String DISK_TOTAL_USED_PERCENT = "DISK.TOTAL.USED.PERCENT";
    String CPU_IDLE = "CPU.IDLE";
    String CPU_WAIT_IO = "CPU.WAIT.IO";
    String CPU_SERVER_LOADAVG_1 = "CPU.SERVER.LOADAVG.1";
    String CPU_SERVER_LOADAVG_5 = "CPU.SERVER.LOADAVG.5";
    String CPU_SERVER_LOADAVG_15 = "CPU.SERVER.LOADAVG.15";
    String DISK_TOTAL_IO_UTIL = "DISK.TOTAL.IO.UTIL";
    String NET_TOTAL_IN_BITPS = "NET.TOTAL.IN.BITPS";
    String NET_TOTAL_OUT_BITPS = "NET.TOTAL.OUT.BITPS";
    String NET_TCP_CURR_ESTAB = "NET.TCP.CURR.ESTAB";
    String NET_TCP_TIME_WAIT = "NET.TCP.TIME.WAIT";
    String NET_TCP_LOSS = "NET.TCP.LOSS";
    String CPU_SERVER_LOADAVG_PERCORE = "CPU.SERVER.LOADAVG.PERCORE";
    String MACHINE_STATUS = "MACHINE_STATUS";

    //Mysql指标
    String MYSQL_THREADS_CONNECTED = "mysql.threads.connected";
    String MYSQL_THREADS_RUNNING = "mysql.threads.running";
    String MYSQL_SLAVE_SQL_RUNNING = "mysql.slave.sql.running";
    String MYSQL_COM_UPDATE = "mysql.com.update";
    String MYSQL_COM_DELETE = "mysql.com.delete";
    String MYSQL_COM_SELECT = "mysql.com.select";
    String MYSQL_SLAVE_IO_RUNNING = "mysql.slave.io.running";
    String MYSQL_SECONDS_BEHIND_MASTER = "mysql.seconds.behind.master";
    String MYSQL_COM_INSERT = "mysql.com.insert";

    //Redis指标
    String REDIS_INSTANCE_MASTER_LINK_STATUS = "redis.instance.master_link_status";
    String REDIS_INSTANCE_USED_MEMORY_RSS = "redis.instance.used_memory_rss";
    String REDIS_INSTANCE_USED_MEMORY = "redis.instance.used_memory";
    String REDIS_INSTANCE_CONNECTED_CLIENTS = "redis.instance.connected_clients";
    String REDIS_INSTANCE_KEYS = "redis.instance.keys";
    String REDIS_INSTANCE_INSTANTANEOUS_OPS_PER_SEC = "redis.instance.instantaneous_ops_per_sec";
    String REDIS_INSTANCE_USED_MEMORY_PER = "redis.instance.used_memory_per";
    String REDIS_INSTANCE_CONNECTED_CLIENTS_PER = "redis.instance.connected_clients_per";

}
